<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>完善医院信息</title>
<link rel="shortcut icon" href="${pageContext.request.contextPath}/bootstrapStyle/img/favicon.ico">
<link href="${pageContext.request.contextPath}/bootstrapStyle/css/bootstrap.min.css?v=3.3.5" rel="stylesheet">
<link href="${pageContext.request.contextPath}/bootstrapStyle/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
<link href="${pageContext.request.contextPath}/bootstrapStyle/css/plugins/iCheck/custom.css" rel="stylesheet">
<link href="${pageContext.request.contextPath}/bootstrapStyle/css/plugins/steps/jquery.steps.css" rel="stylesheet">
<link href="${pageContext.request.contextPath}/bootstrapStyle/css/animate.min.css" rel="stylesheet">
<link href="${pageContext.request.contextPath}/bootstrapStyle/css/style.min.css?v=4.0.0" rel="stylesheet">
<link href="${pageContext.request.contextPath}/bootstrapStyle/css/fileinput.css" rel="stylesheet">
<script src="${pageContext.request.contextPath}/bootstrapStyle/js/jquery.min.js?v=2.1.4"></script>
<script src="${pageContext.request.contextPath}/bootstrapStyle/js/fileinput.js"></script>
<script src="${pageContext.request.contextPath}/bootstrapStyle/js/zh.js"></script>
<script src="${pageContext.request.contextPath}/bootstrapStyle/js/bootstrap.min.js?v=3.3.5"></script>
<script src="${pageContext.request.contextPath}/bootstrapStyle/js/content.min.js?v=1.0.0"></script>
<script src="${pageContext.request.contextPath}/bootstrapStyle/js/plugins/staps/jquery.steps.min.js"></script>
<script src="${pageContext.request.contextPath}/bootstrapStyle/js/plugins/validate/jquery.validate.min.js"></script>
<script src="${pageContext.request.contextPath}/bootstrapStyle/js/demo/form-validate-demo.min.js"></script>
<script src="${pageContext.request.contextPath}/bootstrapStyle/js/plugins/validate/messages_zh.min.js"></script>
</head>
<body class="gray-bg">
	<div class="wrapper wrapper-content">
		<div class="ibox float-e-margins">
			<div class="ibox-title">
				<h5>完善信息</h5>
			</div>
			<div class="ibox-content">
				<form class="form-horizontal m-t" id="form" action="${pageContext.request.contextPath}/Main/myinfo/MyInfoRegSubmit.action" method="post"  enctype="multipart/form-data">
					<div class="row">
						<div class="col-sm-8">
							<div class="row">
							<!-- 这里提示了信息提交返回信息 -->
							<c:if test="${message !=null}">
								<div class="alert alert-info">
									<a style="color:red;text-decoration: underline;" href="${pageContext.request.contextPath}/Main/myinfo/MyInformation.action">${message }</a>
								</div>
							</c:if>
								<div class="col-sm-5">
									<div class="form-group">
		                                <label>医院名称*</label>
		                                <input type="text" minlength="2" name="hospname" id="hospname" class="form-control" placeholder="请输入医院全称" required="" aria-required="true">
		                            </div>
		                            <div class="form-group draggable">
		                                <label>医院联系电话*</label>
		                                <input type="text" name="hospphone" id="hospphone" class="form-control" placeholder="请输入医院联系电话（保证畅通，座机、移动电话不限）" required="" aria-required="true">
		                            </div>
		                            <div class="form-group draggable">
		                                <label>注册人身份证号码*</label>
		                                <input type="text" name="hospregidcard" minlength="18" maxlength="18" id="hospregidcard" class="form-control" placeholder="请输入平台注册人本人的身份证号码，注意格式" required="" aria-required="true">
		                            </div>
		                            <div class="form-group draggable">
		                                <label>医院地址*</label>
		                                <input type="text" name="hospadr" id="hospadr" class="form-control" placeholder="请输入医院地址，包括省、市、区" required="" aria-required="true">
		                            </div>
		                            <div class="form-group draggable">
		                                <label>医院等级*</label>
		                                <input type="text" name="hospgrade" id="hospgrade" class="form-control" placeholder="请输入医院认证过的等级，如：二级甲等医院" required="" aria-required="true">
		                            </div>
								</div>
								<div class="col-sm-1">
								</div>
								<div class="col-sm-6">
									
		                            <div class="form-group draggable">
		                                <label>医院建院简介*</label>
		                                <textarea id="hospabs" rows="6" minlength="20" maxlength="150"  name="hospabs" class="form-control" placeholder="请输入医院建院简介，可写简要梗概（可参考贵院官网信息），字数限20-150字" required="" aria-required="true"></textarea>
		                            </div>
		                            <div class="form-group draggable">
		                                <label>医院特色简介*</label>
		                                <textarea id="hospfeature" rows="7" minlength="20" maxlength="150" name="hospfeature" class="form-control" placeholder="请输入医院特色，例如特色医生或部门，为了实现更好的交互，请认真填写（填写内容作为别人首先了解贵院的基本资料）字数限20-150字" required="" aria-required="true"></textarea>
		                            </div>
								</div>
							</div>
							<br/><br/>
							<br/><br/>
							<div class="form-group draggable">
                                <label>注册人医师资格证照片*<a><abbr title="注意事项">（注册人所持有的行医资格证，上次保证资格证号清晰可辨认，模糊可能导致审核不通过！只支持上传一张，不可多选！）</abbr></a></label>
                                <input name="certify_pic" id="hospregdocquacer" class="file form-control" type="file" multiple=true data-min-file-count="1" data-max-file-count="1" required="" aria-required="true">
                            </div>
                            <br/><br/>
                            <br/><br/>
                            <div class="form-group draggable">
                                <label>医院代码证*<a><abbr title="注意事项">（当地质量技术监督部门办理组织机构代码证，上传照片时保证代码证号清晰可辨认，模糊可能导致审核不通过！只支持上传一张，不可多选！）</abbr></a></label>
                                <input name="certify_pic" id="hosporgcodecer" class="file form-control" type="file" multiple=true data-min-file-count="1" data-max-file-count="1" required="" aria-required="true">
                            </div>
                            <br/><br/>
                            <br/><br/>
                            <div class="form-group draggable">
                                <label>注册医院执业许可证*<a><abbr title="注意事项">（上传医院的执业许可证照片，上传照片时保证许可证号清晰可辨认，模糊可能导致审核不通过！只支持上传一张，不可多选！）</abbr></a></label>
                                <input name="certify_pic" id="hosppraclicense" class="file form-control" type="file" multiple=true data-min-file-count="1" data-max-file-count="1" required="" aria-required="true">
                            </div>
                            <br/><br/>
                            <br/><br/>
                            <div class="form-group draggable">
                                <label>注册医院法人证明照片*<a><abbr title="注意事项">（上传注册医院的法人的证明照片，证明材料照片不限，保证法律唯一性即可！只支持上传一张，不可多选！）</abbr></a></label>
                                <input name="certify_pic" id="hosplegalcer" class="file form-control" type="file" multiple=true data-min-file-count="1" data-max-file-count="1" required="" aria-required="true">
                            </div>
                            
						</div>
						<div class="form-group draggable">
							<div class="col-sm-12 col-sm-offset-6">
								<button class="btn btn-primary" type="submit">保存</button>
								<button class="btn btn-white" type="reset">重置</button>
							</div>
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>
<script type="text/javascript">
//data:$('#form').serialize(),
//action="${pageContext.request.contextPath}/Main/myinfo/MyInfoRegSubmit.action"
	/* $(function(){
		$('#form').submit(function(){
			var username=$('#hospname').val();
			var hosplegalcer=$('#hosplegalcer').val();
			alert(username+"====="+hosplegalcer);
			$.ajax({
				type:"post",
				url:"${pageContext.request.contextPath}/Main/myinfo/MyInfoRegSubmit.action",
				contentType:"json",
				data:$('#form').serialize(),
				success:function(data){
					if(data==1){
						alert("恭喜您  ");
					}else{
						alert("有误！");
					}
				}
			})
		})
	}) */
	$("#hospregdocquacer").fileinput({
		showUpload: true,
	});
	$("#hosporgcodecer").fileinput({
		showUpload: false,
	});
	$("#hosppraclicense").fileinput({
		showUpload: false,
	});
	$("#hosplegalcer").fileinput({
		showUpload: false,
	});
</script>
</body>
</html>